package com.itheima.exerciseTest.method20_29.method26;

import java.util.ArrayList;
import java.util.concurrent.ArrayBlockingQueue;

public class Storefront {
    // 柜台
    private ArrayList<String> al;
    // 柜台存放数量
    private int size;
    // 生产面包的数量
    private int count;

    private static final Object lock = new Object();

    public Storefront() {
        this(5, 100);
    }

    public Storefront(int size, int count) {
        this.al = new ArrayList();
        this.size = size;
        this.count = count;
    }

    public Object getLock() {
        return lock;
    }

    public ArrayList<String> getAl() {
        return al;
    }

    public void setAl(ArrayList<String> al) {
        this.al = al;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
